GBML manual / Constants

BTN_R

The GBA’s R button, for btn_held/btn_pressed/btn_released.

Sega Genesis: not available

On other consoles this differs: see Side by side and How the consoles differ.

Syntax

BTN_R: constant

Description

Names the GBA's R button, for passing to btn_held, btn_pressed or btn_released - the right shoulder button.

Example

if (btn_pressed(BTN_R)) {
    var fired = true;
}

Checks for a fresh press of R this frame.

See also: btn_heldbtn_pressedbtn_released